home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
Bowers Development
/
AppMaker 2.0b5
/
Examples
/
TCL
/
AMReminder
/
AMReminderApp.cp
< prev
next >
Wrap
Text File
|
1996-03-19
|
2KB
|
87 lines
/* AMReminderApp.cp -- application methods */
/* Created 01/01/95 12:01 PM by AppMaker */
/* This module overrides the AppMaker-generated code in zAMReminderApp. */
/* It provides a place for you to add your own code and still be able to */
/* generate code for new changes to the user interface. This module will */
/* not be regenerated by AppMaker unless you delete it. Its superclass, */
/* zAMReminderApp, may be regenerated to handle user interface changes */
/* without losing your hand-coded changes to this module. */
#include <Commands.h>
#include <CBartender.h>
#include <CWindow.h>
#include <Global.h>
#include "CmdCodes.h"
#include "AMReminderData.h"
#include "AMReminderApp.h"
extern OSType gSignature;
extern CBartender *gBartender;
/*----------*/
void CAMReminderApp::IAMReminderApp (void)
{
inherited::IAMReminderApp ();
// your application-specific initialization:
} /* IAMReminderApp */
/*----------*/
void CAMReminderApp::SetUpFileParameters (void)
{
inherited::SetUpFileParameters ();
sfNumTypes = 1;
sfFileTypes [0] = kFileType;
gSignature = kSignature;
} /* SetUpFileParameters */
/*----------*/
void CAMReminderApp::UpdateMenus (void)
{
inherited::UpdateMenus ();
gBartender->EnableCmd (cmdDeleteReminder);
} /* UpdateMenus */
/*----------*/
void CAMReminderApp::DoCommand (long theCommand)
{
short theMenu;
short theItem;
Str255 theItemText;
if (theCommand < 0) { /* menu generated dynamically */
theMenu = HiShort (-theCommand);
if (theMenu == MENUapple) {
inherited::DoCommand (theCommand); /* handle Apple menu in superclass */
} else {
theItem = LoShort (-theCommand);
GetItem (GetMHandle (theMenu), theItem, theItemText);
/* do the right thing with the text of the item */
}
} else {
switch (theCommand) {
case cmdDeleteReminder:
DoDeleteReminder ();
break;
default:
inherited::DoCommand (theCommand);
break;
} /* switch */
}
} /* DoCommand */
//----------
void CAMReminderApp::DoDeleteReminder ()
{
}
/* AMReminderApp.cp */